<template>
    <van-nav-bar
        title="《顽客》用户协议"
        left-arrow
        @click-left="router.go(-1)"
        />
        <div class="content" v-html="_data"></div>
</template>

<script lang="ts" setup>
import { ref } from "vue";
import { useRouter } from "vue-router";
import { getAgreeApi } from "../../apis/userApis";

const router = useRouter()

// 获取用户协议
const _data = ref()
getCont()
async function getCont(){
   let _res = await getAgreeApi()
   if(_res.code === 200){
    _data.value = _res.data
   }
}





</script>

<style lang="less" scoped>
@import url('../../style/comon.less');
::v-deep .van-icon-arrow-left:before{
    color: @g9;
    font-size: .9rem;
}
.content{
    height: calc(100% - 46px);
    overflow-x: hidden;
    font-size: .65rem;
    padding: .6rem;
}
</style>